package com.xmut.mall.auth.feign;

import com.xmut.mall.auth.utils.RespBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("mall-third-party")
public interface ThirdPartyFeignService {

    /**
     * 发送短信
     * @return
     */
    @GetMapping("/sms/sendCode/{phone}/{code}")
    RespBean sendCode(@PathVariable("phone") String phone, @PathVariable("code") String code);
}
